package com.richman.hgps38;

import java.text.SimpleDateFormat;

import com.richman.controller.DecreseRatio;
import com.richman.ps38.PS38GrabThread;

public class HGISNMergeThread extends Thread {

	
	public boolean sendalready = false;
	
	@Override
    public void run() {
		
		
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// 设置日期格式

		try{

			while(DecreseRatio.bStartEngine){
				try{
					
					DecreseRatio.isnps38EventManager.constructisnhgevents();
					
					Thread.sleep(500);
					

					
					
				}catch(Exception e){
					e.printStackTrace();
					Thread.sleep(2000);
				}
				

			}

		}catch(Exception e){
			e.printStackTrace();
		}	
	}
}
